package de.ret_world.openrpgstudio.mapeditor.tools;

import de.ret_world.openrpgstudio.mapeditor.MapEditorWidget;
import de.ret_world.openrpgstudio.mapeditor.MapToolPlugin;
import de.ret_world.openrpgstudio.mapeditor.TileSetWidget;

/**
 * A simple Rubber Tool to remove the selected Tile.
 *
 * @author Emu
 */
public class RubberTool extends MapToolPlugin {

    public RubberTool(TileSetWidget tileSetWidget, MapEditorWidget mapEditorWidget) {
        super(tileSetWidget, mapEditorWidget);
    }

    @Override
    public void activated() {
        
    }

    @Override
    public void use(int x, int y, int TYPE) {
        hover(x, y);
        mapEditorWidget.setTile(x, y, -1);
    }

    @Override
    public void hover(int x, int y) {
        mapEditorWidget.setPointer(x, y, MapEditorWidget.REDMARKER);
    }

    @Override
    public String activeText() {
        return "[R]";
    }

    @Override
    public String inactiveText() {
        return "R";
    }
}
